#
# Be sure to run `pod lib lint LXPermissionAuth.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'LXPermissionAuth'
  s.version          = '1.1.0'
  s.summary          = '一个swift版的iOS各个权限检测与获取的库'
  s.swift_version    = '5.1'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/lxpray/lxpermission-auth'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'lxpray@163.com' => 'lx@yoc.tech' }
  s.source           = { :git => 'https://gitee.com/lxpray/lxpermission-auth.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'

  
  s.default_subspec = "All"

  s.subspec "All" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/**/*'
    ss.framework  = "Foundation", "UIKit", "MediaPlayer", "AppTrackingTransparency", "HomeKit", "LocalAuthentication", "EventKit", "Speech", "Intents", "Contacts", "CoreMotion", "Photos", "AVFoundation", "MapKit", "UserNotifications"
  end

  s.subspec "MediaPlayer" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionMedia.swift'
    ss.framework  = "MediaPlayer", "UIKit"
  end

  s.subspec "IDFA" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionIDFA.swift'
    ss.framework  = "AppTrackingTransparency", "UIKit"
  end
  s.subspec "HomeKit" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionHomeKit.swift'
    ss.framework  = "HomeKit", "UIKit"
  end
  s.subspec "FaceId" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionFaceId.swift'
    ss.framework  = "LocalAuthentication", "UIKit"
  end
  s.subspec "Event" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionEvent.swift'
    ss.framework  = "EventKit", "UIKit"
  end
  s.subspec "Reminder" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionReminder.swift'
    ss.framework  = "EventKit", "UIKit"
  end
  s.subspec "Speech" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionSpeech.swift'
    ss.framework  = "Speech", "UIKit"
  end
  s.subspec "Siri" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionSiri.swift'
    ss.framework  = "Intents", "UIKit"
  end
  s.subspec "Contacts" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionContacts.swift'
    ss.framework  = "Contacts", "UIKit"
  end
  s.subspec "CMPedometer" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionCMPedometer.swift'
    ss.framework  = "CoreMotion", "UIKit"
  end
  s.subspec "Photos" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionPhoto.swift'
    ss.framework  = "Photos", "UIKit"
  end
  s.subspec "Camera" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionCamera.swift'
    ss.framework  = "AVFoundation", "UIKit"
  end
  s.subspec "Microphone" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionMicrophone.swift'
    ss.framework  = "AVFoundation", "UIKit"
  end
  s.subspec "Location" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionLocation.swift'
    ss.framework  = "MapKit", "UIKit"
  end
  s.subspec "Push" do |ss|
    ss.source_files  = 'LXPermissionAuth/Classes/LXPermission.swift', 'LXPermissionAuth/Classes/LXPermissionPush.swift'
    ss.framework  = "UserNotifications", "UIKit"
  end
  # s.resource_bundles = {
  #   'LXPermissionAuth' => ['LXPermissionAuth/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
